package com.spi.soconversion.orders.conversion;

import com.spi.soconversion.util.SOCConstants;
import com.spi.soconversion.util.SOCUtility;

public class InstallBase {
	
	private String addLine1;
	private String instanceId;
	private String addLine2;
	private String addLine3;
	private String addLine4;
	private String addLine5;
	private String city;
	private String state;
	private String zipCode;
	private final String createProgID=SOCConstants.EMPTY_STRING;
	private String createts;
	private String createUserID;
	private String customerID;
	private String mobile;
	private String dayFax;
	private final String eveFax=SOCConstants.EMPTY_STRING;
	private String dayPhone;
	private String emailID;
	private String evePhone;
	private final String enterpriseCode=SOCConstants.BAY;
	private String firstName;
	private String lastName;
	private String fulFillmentDate;
	private String fulFillmentMethod;
	private String fulFillmentStore;
	private final String installBaseKey=SOCConstants.EMPTY_STRING;
	private String itemDesc;
	private String itemID;
	private String itemType;
	private String lifeExpectancy;
	private String lineType;
	private final String lockID=SOCConstants.ZERO;
	private String manuStartDate;
	private String manuEndDate;
	private final String orderHeaderKey=SOCConstants.EMPTY_STRING;
	private final String orderLineKey=SOCConstants.EMPTY_STRING;
	private String orderNo;
	private String posRegister;
	private String posTransDate;
	private String posTransID;
	private String quantity;
	private String sellingStore;
	private String sellingPrice;
	private String warrantyDuration;
	
	public void setInstanceId(String instanceId) {
		this.instanceId = instanceId;
	}
	
	public String getInstanceId() {
		return instanceId;
	}
	
	public void setCity(String city) {
		this.city = city;		
	}
	
	public String getCity() {
		this.city = SOCUtility.checkNull(city);	
		if(this.city.length()>35)
		{
			this.city = this.city.substring(0, 35);
		}
		return city;
	}
	
	public void setState(String state) {
		this.state = state;
	}
		
	public String getState() {
		this.state = SOCUtility.checkNull(state);
		if(state.length()>35)
		{
			state = state.substring(0, 35);
		}
		return state;
	}
	
	public String getZipCode() {
		this.zipCode = SOCUtility.checkNull(zipCode);
		if(zipCode.length()>35)
		{
			zipCode = zipCode.substring(0, 35);
		}
		return zipCode;
	}
	
	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}
		
	public String getMobile() {
		return SOCUtility.checkNull(mobile).trim();
	}
	
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
	public String getCustomerID() {
		return SOCUtility.checkNull(customerID);
	}
	
	public void setCustomerID(String customerID) {
		this.customerID = customerID;
	}
	
	public void setEvePhone(String evePhone) {
		this.evePhone = evePhone;
	}
		
	public String getEvePhone() {
		return SOCUtility.checkNull(evePhone).trim();
	}
	
	public void setEmailID(String emailID) {
		this.emailID = emailID;
	}
	
	public String getEmailID() {
		this.emailID = SOCUtility.checkNull(emailID).trim();
		if(emailID.length()>150)
		{
			emailID = emailID.substring(0, 150);
		}
		return emailID;
	}
	
	public void setDayPhone(String dayPhone) {
		this.dayPhone = dayPhone;
	}
		
	public String getDayPhone() {
		return SOCUtility.checkNull(dayPhone).trim();
	}
		
	public String getEveFax() {
		return eveFax;
	}
	
	public void setDayFax(String dayFax) {
		this.dayFax = dayFax;
	}
	
	public String getDayFax() {
		return SOCUtility.checkNull(dayFax).trim();
	}
	
	public String getFulFillmentMethod() {
		this.fulFillmentMethod = SOCUtility.checkNull(fulFillmentMethod);
		if(fulFillmentMethod.length()>40)
		{
			fulFillmentMethod = fulFillmentMethod.substring(0, 40);
		}
		return fulFillmentMethod;
	}
	
	public void setFulFillmentMethod(String fulFillmentMethod) {
		this.fulFillmentMethod = fulFillmentMethod;
	}
		
	public String getLastName() {
		this.lastName = SOCUtility.checkNull(lastName);
		if(lastName.length()>40)
		{
			lastName = lastName.substring(0, 40);
		}
		return lastName;
	}
	
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}
	
	public String getFirstName() {
		this.firstName =SOCUtility.checkNull(firstName);
		if(firstName.length()>40)
		{
			firstName = firstName.substring(0, 40);
		}
		return firstName;
	}
	
	public void setFirstName(String firstName) {
		this.firstName =firstName;
	}
		
	public String getEnterpriseCode() {
		return enterpriseCode;
	}
	
	public void setFulFillmentDate(String fulFillmentDate) {
		this.fulFillmentDate =fulFillmentDate;
	}
		
	public String getFulFillmentDate() {
		return  SOCUtility.checkNull(fulFillmentDate);
	}
	
	public void setItemType(String itemType) {
		this.itemType =itemType;
	}
	
	public String getItemType() {
		this.itemType = SOCUtility.checkNull(itemType);;
		if(itemType.length()>40)
		{
			itemType = itemType.substring(0, 40);
		}
		return itemType;
	}
	
	public void setItemID(String itemID) {
		this.itemID = itemID;
	}
		
	public String getItemID() {
		return SOCUtility.checkNull(itemID);
	}
	
	public String getInstallBaseKey() {
		return installBaseKey;
	}
	
	public void setItemDesc(String itemDesc) {
		this.itemDesc = itemDesc;
	}
		
	public String getItemDesc() {
		this.itemDesc = SOCUtility.checkNull(itemDesc);
		if(itemDesc.length()>200)
		{
			itemDesc = itemDesc.substring(0, 200);
		}
		return itemDesc;
	}
	
	public void setFulFillmentStore(String fulFillmentStore) {
		this.fulFillmentStore = fulFillmentStore;
	}
		
	public String getFulFillmentStore() {
		return SOCUtility.checkNull(fulFillmentStore);
	}
	
	public void setAddLine1(String addLine1) {
		this.addLine1 = addLine1;
	}
	
	public String getAddLine1() {
		return addLine1;
	}
	
	public void setAddLine2(String addLine2) {
		this.addLine2 = addLine2;
	}
		
	public String getAddLine2() {
		return addLine2;
	}
	
	public void setAddLine3(String addLine3) {
		this.addLine3 = addLine3;
	}
	
	public String getAddLine3() {
		return addLine3;
	}
	
	public void setAddLine4(String addLine4) {
		this.addLine4 = addLine4;
	}
		
	public String getAddLine4() {
		return addLine4;
	}
	
	public void setAddLine5(String addLine5) {
		this.addLine5 = addLine5;
	}
		
	public String getAddLine5() {
		return addLine5;
	}
	
	public void setSellingStore(String sellingStore) {
		this.sellingStore =sellingStore;
	}
	
	public String getSellingStore() {
		return  SOCUtility.checkNull(sellingStore);
	}
	
	public void setSellingPrice(String sellingPrice) {
		this.sellingPrice = sellingPrice;
	}
		
	public String getSellingPrice() {
		return SOCUtility.checkNull(sellingPrice);
	}
	
	public void setWarrantyDuration(String warrantyDuration) {
		this.warrantyDuration = warrantyDuration;
	}
	
	public String getWarrantyDuration() {
		return SOCUtility.checkNull(warrantyDuration);
	}
	
	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}
	
	public String getOrderNo() {
		return SOCUtility.checkNull(orderNo);
	}
	
	public void setPosRegister(String posRegister) {
		this.posRegister = posRegister;
	}
		
	public String getPosRegister() {
		return SOCUtility.checkNull(posRegister);
	}
	
	public void setPosTransDate(String posTransDate) {
		this.posTransDate =posTransDate;
	}
	
	public String getPosTransDate() {
		return  SOCUtility.checkNull(posTransDate);
	}
	
	public void setPosTransID(String posTransID) {
		this.posTransID = posTransID;
	}
		
	public String getPosTransID() {
		return  SOCUtility.checkNull(posTransID);
	}
	
	public void setQuantity(String quantity) {
		this.quantity = quantity;
	}
		
	public String getQuantity() {
		return SOCUtility.checkNull(quantity);
	}
	
	public String getModifyProgID() {
		return getCreateProgID();
	}
	
	public String getModifyts() {
		return getCreatets();
	}
		
	public String getModifyUserID() {
		return getCreateUserID();
	}
	
	public String getOrderHeaderKey() {
		return orderHeaderKey;
	}
	
	public String getOrderLineKey() {
		return orderLineKey;
	}
	
	public void setLifeExpectancy(String lifeExpectancy) {
		this.lifeExpectancy = lifeExpectancy;
	}
	
	public String getLifeExpectancy() {
		return lifeExpectancy;
	}
	
	public void setLineType(String lineType) {
		this.lineType =lineType;
	}
		
	public String getLineType() {
		this.lineType = SOCUtility.checkNull(lineType);
		if(lineType.length()>40)
		{
			lineType = lineType.substring(0, 40);
		}
		return lineType;
	}
		
	public String getLockID() {
		return lockID;
	}
	
	public void setManuStartDate(String manuStartDate) {
		this.manuStartDate = manuStartDate;
	}
		
	public String getManuStartDate() {
		return SOCUtility.checkNull(manuStartDate);
	}
	
	public void setManuEndDate(String manuEndDate) {
		this.manuEndDate = manuEndDate;
	}
		
	public String getManuEndDate() {
		return SOCUtility.checkNull(manuEndDate);
	}
		
	public String getCreateProgID() {
		return createProgID;
	}
	
	public void setCreatets(String createts) {
		this.createts = createts;
	}
		
	public String getCreatets() {
		return SOCUtility.checkNull(createts);
	}
	
	public void setCreateUserID(String createUserID) {
		this.createUserID = createUserID;
	}
	
	public String getCreateUserID() {
		this.createUserID = SOCUtility.checkNull(createUserID);
		if(createUserID.length()>40)
		{
			createUserID = createUserID.substring(0, 40);
		}
		return createUserID;
	}
	
}
